package com.ywcq.netty.httpserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationListener;

@SpringBootApplication
public class HttpServerApplication {

	public static void main(String[] args) 
	{
		
//		SpringApplication.run(HttpServerApplication.class, args);
		SpringApplication app = new SpringApplication(HttpServerApplication.class);
		ApplicationListener<?> listeners = new com.ywcq.netty.httpserver.listeners.ApplicationListener();
		app.addListeners(listeners );
		app.run(args);
	}
}
